package com.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * @author 
 */
public class Sc implements Serializable {
    private Integer scno;

    private String sno;

    private String cno;

    private String tno;

    private Integer score;

    private Date examtime;

    private String exampoint;

    private Date addtime;

    private Integer scstate;

    private String adno;

    private Course course;

    public Course getCourse() {
        return course;
    }

    public void setCourse(Course course) {
        this.course = course;
    }

    private static final long serialVersionUID = 1L;

    public Integer getScno() {
        return scno;
    }

    public void setScno(Integer scno) {
        this.scno = scno;
    }

    public String getSno() {
        return sno;
    }

    public void setSno(String sno) {
        this.sno = sno;
    }

    public String getCno() {
        return cno;
    }

    public void setCno(String cno) {
        this.cno = cno;
    }

    public String getTno() {
        return tno;
    }

    public void setTno(String tno) {
        this.tno = tno;
    }

    public Integer getScore() {
        return score;
    }

    public void setScore(Integer score) {
        this.score = score;
    }

    public Date getExamtime() {
        return examtime;
    }

    public void setExamtime(Date examtime) {
        this.examtime = examtime;
    }

    public String getExampoint() {
        return exampoint;
    }

    public void setExampoint(String exampoint) {
        this.exampoint = exampoint;
    }

    public Date getAddtime() {
        return addtime;
    }

    public void setAddtime(Date addtime) {
        this.addtime = addtime;
    }

    public Integer getScstate() {
        return scstate;
    }

    public void setScstate(Integer scstate) {
        this.scstate = scstate;
    }

    public String getAdno() {
        return adno;
    }

    public void setAdno(String adno) {
        this.adno = adno;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Sc other = (Sc) that;
        return (this.getScno() == null ? other.getScno() == null : this.getScno().equals(other.getScno()))
            && (this.getSno() == null ? other.getSno() == null : this.getSno().equals(other.getSno()))
            && (this.getCno() == null ? other.getCno() == null : this.getCno().equals(other.getCno()))
            && (this.getTno() == null ? other.getTno() == null : this.getTno().equals(other.getTno()))
            && (this.getScore() == null ? other.getScore() == null : this.getScore().equals(other.getScore()))
            && (this.getExamtime() == null ? other.getExamtime() == null : this.getExamtime().equals(other.getExamtime()))
            && (this.getExampoint() == null ? other.getExampoint() == null : this.getExampoint().equals(other.getExampoint()))
            && (this.getAddtime() == null ? other.getAddtime() == null : this.getAddtime().equals(other.getAddtime()))
            && (this.getScstate() == null ? other.getScstate() == null : this.getScstate().equals(other.getScstate()))
            && (this.getAdno() == null ? other.getAdno() == null : this.getAdno().equals(other.getAdno()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getScno() == null) ? 0 : getScno().hashCode());
        result = prime * result + ((getSno() == null) ? 0 : getSno().hashCode());
        result = prime * result + ((getCno() == null) ? 0 : getCno().hashCode());
        result = prime * result + ((getTno() == null) ? 0 : getTno().hashCode());
        result = prime * result + ((getScore() == null) ? 0 : getScore().hashCode());
        result = prime * result + ((getExamtime() == null) ? 0 : getExamtime().hashCode());
        result = prime * result + ((getExampoint() == null) ? 0 : getExampoint().hashCode());
        result = prime * result + ((getAddtime() == null) ? 0 : getAddtime().hashCode());
        result = prime * result + ((getScstate() == null) ? 0 : getScstate().hashCode());
        result = prime * result + ((getAdno() == null) ? 0 : getAdno().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", scno=").append(scno);
        sb.append(", sno=").append(sno);
        sb.append(", cno=").append(cno);
        sb.append(", tno=").append(tno);
        sb.append(", score=").append(score);
        sb.append(", examtime=").append(examtime);
        sb.append(", exampoint=").append(exampoint);
        sb.append(", addtime=").append(addtime);
        sb.append(", scstate=").append(scstate);
        sb.append(", adno=").append(adno);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}